package com.tensquare.spit.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Macross
 * @Type Spit.java
 * @Desc 吐槽信息实体类
 * @date 2019/12/18 12:27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "吐槽信息实体类")
public class Spit implements Serializable {

    @Id
    @ApiModelProperty(value = "ID")
    private String _id;

    @ApiModelProperty(value = "吐槽内容")
    private String content;

    @ApiModelProperty(value = "发布内容")
    private Date publishtime;

    @ApiModelProperty(value = "发布者ID")
    private String userid;

    @ApiModelProperty(value = "发布人昵称")
    private String nickname;

    @ApiModelProperty(value = "浏览量")
    private Long visits;

    @ApiModelProperty(value = "点赞数")
    private Long thumbup;

    @ApiModelProperty(value = "分享数")
    private Long share;

    @ApiModelProperty(value = "回复数")
    private Long comment;

    @ApiModelProperty(value = "是否可见")
    private String state;

    @ApiModelProperty(value = "上级id")
    private String parentid;

}
